.class public abstract Les/hj;
.super Ljava/lang/Object;
.source "GifPlayer.java"

# interfaces
.implements Landroid/graphics/drawable/Animatable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/hj$a;
    }
.end annotation


# instance fields
.field private a:Les/cm;

.field private b:Les/hj$a;

.field private c:Z


# direct methods
.method public constructor <init>(Les/cm;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/hj;->c:Z

    .line 3
    iput-object p1, p0, Les/hj;->a:Les/cm;

    return-void
.end method

.method static synthetic a(Les/hj;)Les/cm;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hj;->a:Les/cm;

    return-object p0
.end method


# virtual methods
.method public abstract a(Les/hj;Landroid/graphics/Bitmap;)V
    .param p1    # Les/hj;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Landroid/graphics/Bitmap;
        .annotation build Landroidx/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/MainThread;
    .end annotation
.end method

.method public isRunning()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/hj;->c:Z

    return v0
.end method

.method public start()V
    .locals 2
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .line 1
    iget-boolean v0, p0, Les/hj;->c:Z

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/hj$a;

    invoke-direct {v0, p0}, Les/hj$a;-><init>(Les/hj;)V

    iput-object v0, p0, Les/hj;->b:Les/hj$a;

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    .line 3
    invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Les/hj;->c:Z

    :cond_0
    return-void
.end method

.method public stop()V
    .locals 2
    .annotation build Landroidx/annotation/MainThread;
    .end annotation

    .line 1
    iget-boolean v0, p0, Les/hj;->c:Z

    if-eqz v0, :cond_1

    .line 2
    iget-object v0, p0, Les/hj;->b:Les/hj$a;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0, v1}, Landroid/os/AsyncTask;->cancel(Z)Z

    .line 4
    :cond_0
    iput-boolean v1, p0, Les/hj;->c:Z

    :cond_1
    return-void
.end method
